/*
 *  $Id: StoneRain.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Earth.Spells {
    public class StoneRain: SpellCard {
        public StoneRain(): base("001_e_s_stone_rain") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Earth;
            Value = 100;
            AddManaCost(ElementType.Earth, 4);
        }

        public override void DoAction(TargetArgs args) {
            foreach (Creature cr in args.Player.Enemy.GetCreatures()) {
                if (!cr.CanFly) {
                    cr.DamageBy(NewDamage(args, 2));
                    cr.State = CreatureState.Tapped;
                }
            }
        }
    }
}
